//package com.wntms.service.impl;
//
//import com.wntms.dao.RecordDao;
//import com.wntms.pojo.FreightContract;
//import com.wntms.pojo.Record;
//import com.wntms.service.RecordService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.format.annotation.DateTimeFormat;
//import org.springframework.stereotype.Service;
//
//import java.text.SimpleDateFormat;
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//
//@Service
//public class RecordServiceImpl implements RecordService {
//
//    @Autowired
//    private RecordDao recordDao;
////    @Autowired
////    private Record record;
//
//    public List<Record> addRecord() {
//
//        List<FreightContract> all = recordDao.findAll();
//        List<FreightContract> pname = recordDao.findPname();
//        for (FreightContract s : all) {
//            Record record = new Record();
////               private String fid;
////    private Integer fare;
////    private Integer insurancefare;
//////收货人
////    private String name;
//////发生时间
////    private DateTimeFormat occurtime;
//////运单状态
////    private String zip;
//            String fid=s.getFid();
//            record.setFid(fid);
//
//            Double fare=s.getFare();
//            record.setFare(fare);
//
//            Double insurancefare=s.getInsurancefare();
//            record.setInsurancefare(insurancefare);
//
//            DateTimeFormat occurtime = s.getOccurtime();
//            record.setOccurtime(name);
//            list.add(record);
//        }
////遍历
//
//       for(Object obj:all){
////           record.setName();
//       }
//
////        DateTimeFormat occurtime = record.getOccurtime();
//        Date date = new Date();
//        SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss");
//        String time = sdf.format(date);
////        record.setOccurtime(time);
//        return record;
//    }
//
//    @Override
//    public List<Record> findRecord() {
//        List<Record> list = new ArrayList<>();
//        list = addRecord();
//        return list;
//    }
//}
